<div class="bg-light lter b-b wrapper-md">
    <h4 class="m-n font-thin">店铺分析</h4>
</div>
<div class="wrapper" ng-controller="shopHistoryCtrl">
    <div class="panel panel-body panel-default">
        <div class="clearfix m-b-sm">
            <div class="inline pull-left m-r-sm" ng-controller="DatepickerDemoCtrl">
                <div class="input-group w-lg">
                    <input type="text" class="form-control" placeholder="请输入开始日期" uib-datepicker-popup="yyyy-MM-dd"
                           datepicker-popup="yyyy-MM-dd" ng-model="analysis.startTime"
                           alt-input-formats="altInputFormats" is-open="opened" datepicker-options="dateOptions"
                           close-text="关闭" clear-text="清空" current-text="今天" initialDate disabled/>
                    <span class="input-group-btn ">
                        <button type="button" class="btn btn-default " ng-click="open($event)"><i
                                class="glyphicon glyphicon-calendar"></i></button>
                    </span>
                </div>
            </div>
            <div class="inline pull-left m-r-sm" ng-controller="DatepickerDemoCtrl">
                <div class="input-group w-lg ">
                    <input type="text" class="form-control" placeholder="请输入结束日期" uib-datepicker-popup="yyyy-MM-dd"
                           datepicker-popup="yyyy-MM-dd" ng-model="analysis.endTime"
                           alt-input-formats="altInputFormats" is-open="opened" datepicker-options="dateOptions"
                           close-text="关闭" clear-text="清空" current-text="今天" min-date="analysis.startTime" initialDate disabled/>
                    <span class="input-group-btn ">
                        <button type="button" class="btn btn-default " ng-click="open($event)"><i
                                class="glyphicon glyphicon-calendar"></i></button>
                    </span>
                </div>
            </div>
            <div class="inline pull-left">
                <select class="form-control" ng-model="analysis.shopId" ng-options="item.id as item.name for item in shopList" required>
                    <option value="">所有店铺</option>
                </select>
            </div>
            <div class="col-sm-1 pull-left">
                <button class="btn btn-md btn-default" ng-click="fun()">查询</button>
            </div>
            <div class="col-sm-1 pull-right no-padder">
                <div class="text-right">
                    <button class="btn btn-success m-n" ng-click="exportData()">导出报表</button>
                </div>
            </div>
        </div>
        <div class="panel-body padder-md padder-v bg-light lter m-b-md">

            <div class="col-md-2 m-t-md m-b-md">
                <div class="block h5 m-b">
                    <label>访客数</label>
                    <i class="m-l-xs fa fa-question-circle text-muted pos-rlt h6" popover-placement="right"
                       popover="统计时间内，店铺所有页面（包括店铺主页、单品页、会员主页等）被访问的去重人数，一个人在统计时间范围内访问多次只记为一个。"
                       popover-trigger="mouseenter">
                    </i>
                </div>
                <label class="h4 font-bold" ng-init="analysisData.shopVisitUserCount='--'">{{analysisData.shopVisitUserCount}}</label>
            </div>

            <!--<div class="col-md-3 m-t-md m-b-md">-->
                <!--<div class="block h5 m-b">-->
                    <!--<label>商品分享次数</label>-->
                    <!--<i class="m-l-xs fa fa-question-circle text-muted pos-rlt h6" popover-placement="right"-->
                       <!--popover="统计时间内，商品页面通过转发分享的次数。" popover-trigger="mouseenter">-->
                    <!--</i>-->
                <!--</div>-->
                <!--<label class="h4 font-bold" ng-init="analysisData.goodsShareNumber='&#45;&#45;'">{{analysisData.goodsShareNumber}}</label>-->
            <!--</div>-->

            <!--<div class="col-md-3 m-t-md m-b-md">-->
                <!--<div class="block h5 m-b">-->
                    <!--<label>商品分享人数</label>-->
                    <!--<i class="m-l-xs fa fa-question-circle text-muted pos-rlt h6" popover-placement="right"-->
                       <!--popover="统计时间内，商品详情页被分享的去重人数，一个人在统计时间范围内分享多次只记为一个。" popover-trigger="mouseenter">-->
                    <!--</i>-->
                <!--</div>-->
                <!--<label class="h4 font-bold" ng-init="analysisData.goodsShareUserCount='&#45;&#45;'">{{analysisData.goodsShareUserCount}}</label>-->
            <!--</div>-->

            <!--<div class="col-md-3 m-t-md m-b-md">-->
                <!--<div class="block h5 m-b">-->
                    <!--<label>商品分享访问人数</label>-->
                    <!--<i class="m-l-xs fa fa-question-circle text-muted pos-rlt h6" popover-placement="right"-->
                       <!--popover="统计时间内，该店铺通过商品分享链接访问的人数，一个人在统计时间内访问多次记为一次。" popover-trigger="mouseenter">-->
                    <!--</i>-->
                <!--</div>-->
                <!--<label class="h4 font-bold" ng-init="analysisData.goodsShareVisitCount='&#45;&#45;'">{{analysisData.goodsShareVisitCount}}</label>-->
            <!--</div>-->

            <div class="col-md-2 m-t-md m-b-md">
                <div class="block h5 m-b">
                    <label>浏览量</label>
                    <i class="m-l-xs fa fa-question-circle text-muted pos-rlt h6" popover-placement="right"
                       popover="统计时间内，店铺所有页面（包括店铺主页、单品页、会员主页等）被访问的次数，一个人在统计时间内访问多次记为多次。" popover-trigger="mouseenter">
                    </i>
                </div>
                <label class="h4 font-bold"
                       ng-init="analysisData.shopViewNumber='--'">{{analysisData.shopViewNumber}}</label>
            </div>

            <div class="col-md-2 m-t-md m-b-md">
                <div class="block h5 m-b">
                    <label>店铺分享次数</label>
                    <i class="m-l-xs fa fa-question-circle text-muted pos-rlt h6" popover-placement="right"
                       popover="统计时间内，店铺页面通过转发分享的次数。" popover-trigger="mouseenter">
                    </i>
                </div>
                <label class="h4 font-bold"
                       ng-init="analysisData.shopShareNumber='--'">{{analysisData.shopShareNumber}}</label>
            </div>

            <div class="col-md-2 m-t-md m-b-md">
                <div class="block h5 m-b">
                    <label>店铺分享人数</label>
                    <i class="m-l-xs fa fa-question-circle text-muted pos-rlt h6" popover-placement="right"
                       popover="统计时间内，店铺主页被分享的去重人数，一个人在统计时间范围内分享多次只记为一个。" popover-trigger="mouseenter">
                    </i>
                </div>
                <label class="h4 font-bold" ng-init="analysisData.shopShareUserCount='--'">{{analysisData.shopShareUserCount}}</label>
            </div>

            <div class="col-md-2 m-t-md m-b-md">
                <div class="block h5 m-b">
                    <label>店铺分享访问人数</label>
                    <i class="m-l-xs fa fa-question-circle text-muted pos-rlt h6" popover-placement="right"
                       popover="统计时间内，该店铺通过店铺分享链接访问的人数，一个人在统计时间内访问多次记为一次。" popover-trigger="mouseenter">
                    </i>
                </div>
                <label class="h4 font-bold" ng-init="analysisData.shopShareVisitCount='--'">{{analysisData.shopShareVisitCount}}</label>
            </div>

        </div>

        <!--<div class="col-sm-6">-->
        <!--<div ng-controller="shop_page_ctrl" class="fa-border">-->
        <!--<pie id="pageanalysis" legend="legend" item="item" data="data"></pie>-->
        <!--</div>-->
        <!--</div>-->

        <div class="col-sm-12">
            <div class="fa-border">
                <pie id="originanalysis" legend="legend" data="data"></pie>
            </div>
        </div>

        <!--<div class="col-sm-6">-->
        <!--<div class="fa-border">-->
        <!--<pre id="main" legend="legend" item="item" data="data"></pre>-->
        <!--</div>-->
        <!--</div>-->
    </div>
</div>